<?php
/**
 * Created by PhpStorm.
 * User: zhongbaitong
 * Date: 2019/12/3
 * Time: 10:51
 */

namespace sys;


trait Singleton
{

    private static $instance = null;

    static function getInstance($options=[])
    {
        if(is_null(self::$instance)){
            self::$instance = new static($options);
        }
        return self::$instance;
    }


}